package com.stylefeng.guns.common.persistence.dao;

import com.stylefeng.guns.common.persistence.GunsBaseMapper;
import com.stylefeng.guns.common.persistence.model.Game;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 比赛dao
 *
 * @author wuchong
 */
public interface GameMapper extends GunsBaseMapper<Game> {

    /**
     * 查询所有的mid
     *
     * @return
     */
    List<String> findMid();

    List<Game> selectByCondition(Game game);

    /**
     * 批量更新
     *
     * @param gameList
     */
    void batchUpdate(List<Game> gameList);

    /**
     * 获取比赛信息
     *
     * @param mid
     * @return
     */
    Game findByMid(@Param("mid") String mid);
}